home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kellogg's Amérique
/
Kellogg's Amérique
/
amazonie_en_danger.swf
/
scripts
/
fl
/
events
/
ScrollEvent.as
< prev
Wrap
Text File
|
2020-08-04
|
1KB
|
51 lines
package fl.events
{
import flash.events.Event;
public class ScrollEvent extends Event
{
public static const SCROLL:String = "scroll";
private var _position:Number;
private var _direction:String;
private var _delta:Number;
public function ScrollEvent(param1:String, param2:Number, param3:Number)
{
super(ScrollEvent.SCROLL,false,false);
_direction = param1;
_delta = param2;
_position = param3;
}
override public function clone() : Event
{
return new ScrollEvent(_direction,_delta,_position);
}
public function get position() : Number
{
return _position;
}
override public function toString() : String
{
return formatToString("ScrollEvent","type","bubbles","cancelable","direction","delta","position");
}
public function get delta() : Number
{
return _delta;
}
public function get direction() : String
{
return _direction;
}
}
}